<?php

namespace App\Models\Sale;

use App\Models\BaseModel;

class SaleOrder extends BaseModel
{
    //
    protected $fillable = [
        'order_no',
        'shop_id',
        'customer_id',
        'user_id',
        'total_cost_price',
        'total_sale_price',
        'status'
    ];

    protected $hidden = [
    ];

    public function saleItems()
    {
        return $this->hasMany(SaleItem::class,'order_id','id');
    }
}
